package cn.wanho.rvo;

/**
 *
 * @author jianma
 */
public enum ResultEnum {
    /**
     * 所有的配置信息
     */
    IMPORT_STUDENT_FAILURE("100002","导入学生信息失败" ),
    IMPORT_STUDENT_SUCCESS("200002","导入学生信息成功" ),

    /**
     * 修改老师状态
     */
    UPDATE_TEACHER_SUCCESS("205005","修改成功，老师状态已离职"),
    UPDATE_TEACHER_FAILURE1("205006","修改老师状态失败"),
    UPDATE_TEACHER_FAILURE2("205007","您查询的用户不是老师，请重新输入"),

    /** 查询老师的信息 */
    CREATE_TEACHER_SUCCESS("205008","查询老师的信息成功"),
    CREATE_TEACHER_FAILURE("205009","查询老师的信息失败"),

    /** 查看所有学生的考试情况 */
    QUERY_STUDENT_EXAM_SUCCESS("205100","查询到了学生的考试信息"),
    QUERY_STUDENT_EXAM_FAILURE("205101","失败"),


    /**
     * 班级
     */
    CREATE_CLASS_SUCCESS("205000","创建班级成功"),
    CREATE_CLASS_FAILURE("205001","创建班级失败"),

    /**
     * 阶段
     */

    /*------------------------------*/

    UPDATE_USERPASS_SUCCESS("201001","密码已修改成功" ),
    UPDATE_USERPASS_FAILURE("201002","密码已修改成功" ),
    USERPASS_NOT_EXIST("201000","密码输入错误"),

    CREATE_ADMIN_FAILURE("100001","创建管理员失败"),
    CREATE_ADMIN_REPEAT("100101","该管理员已存在"),
    CREATE_ADMIN_SUCCESS("200001","创建管理员成功"),

    UPDATE_USER_SUCCESS("204000","修改用户成功"),
    UPDATE_USER_FAILURE("104000","修改用户失败"),
    /*-----------------------*/

    CREATE_STAGE_SUCCESS("203002","创建阶段成功"),
    CREATE_STAGE_FAILURE("103002","创建阶段失败"),
    STAGE_IS_EXIST("103000","创建失败，阶段名已存在"),

    SELECT_CLASS_SUCCESS("203003","查询目前班级成功"),
    SELECT_CLASS_FAILURE("103003","查询目前班级失败"),
    NO_ROLES("103004","当前无此权限"),

    IMPORT_CHOOSE_SUCCESS("203004","导入选择题成功"),
    IMPORT_CHOOSE_FAILURE("103004","导入选择题失败"),

    UPDATE_BIG_SUCCESS("203005","录入简答题分数成功"),
    UPDATE_BIG_FAILURE("103005","录入简答题分数成功"),

    QUERY_PAPER_SUCCESS("203006","查询学生试卷成功"),
    QUERY_PAPER_FAILURE("103006","查询学生试卷失败"),

    CREATE_PAPER_SUCCESS("203007","创建试卷成功"),
    CREATE_PAPER_FAILURE("103007","创建试卷失败"),
    /*1717171717*/
    INSUFFICIENT_PERMISSIONS("202000","权限不足"),
    CREATETEACHER_SUCCESS("202101", "创建老师成功"),
    CREATETEACHER_FAILURE("202201", "创建老师失败"),
    ADD_EXCEL_FAILURE("202102", "excel添加失败"),
    ADD_EXCEL_SUCCESS("202202", "excel添加成功"),
    ADD_CLASSSTAGE_SUCCESS("202103", "班级绑定阶段成功"),
    ADD_CLASSSTUDENT_SUCCESS("202109", "学生绑定班级成功"),
    ADD_CLASSSTUDENT_FAILURE("202209", "学生绑定班级失败"),
    ADD_CLASSSTAGE_FAILURE("202203", "班级绑定阶段失败"),
    ADD_CLASSID_FAILURE("202204", "班级不存在"),
    ADD_STAGEID_FAILURE("202205", "阶段不存在"),
    ADD_TEACHER_FAILURE("202206", "老师不存在"),
    ADD_PAPERID_FAILURE("202207", "试卷不存在"),
    ADD_STUDENTPAPERID_FAILURE("202209", "学生不存在"),
    REPEAT_FAILURE("202208", "重复错误"),


    QUERYPAPER_SUCCESS("202110","您可以参加的考试如下"),
    QUERYPAPER_FAILURE("202210","您没有需要进行的考试"),

    /*1717171717*/
    //------------------------------------------------------------------------------
    QUERY_STUDENT_SUCCESS("204001","查询学生信息成功"),
    QUERY_STUDENT_FAILURE("104001","查询学生信息失败"),

    NO_MATCH_INFORMATION("104002","你的权限不足"),

    PAPER_NO_EXISTS("104003","当前试卷不存在"),

    EXAM_TIME_NO_ARRIVE("104004","还未到考试时间，请等待"),

    EXAM_START_NOW("204002","考试开始，请答题"),

    EXAM_TIME_FINISH("104005","考试已经结束了"),

    COMMIT_SUCCESS("204003","提交成功"),

    COMMIT_FAILURE("104006","提交失败"),

    QUERY_STUDENT_SCORE_SUCCESS("204005","查询成绩成功"),
    QUERY_STUDENT_SCORE_FAILURE("104007","老师还未批改完成，请稍后再试"),
//--------------------------------------------------------------------------------------


    UPDATE_STUDENT_SCORE_SUCCESS("201101","上一次批改有误，修改分数成功"),
    UPDATE_STUDENT_SCORE_FAILURE("201102","上一次批改无误，不需要修改分数"),


    QUERY_SCORE_TEACHER_SUCCESS("201401","查询成绩及老师信息成功"),
    QUERY_SCORE_TEACHER_FAILURE("201402","查询成绩及老师信息失败"),


    APPLY_FOR_SUCCESS("201301","申请复议成功"),
    APPLY_FOR_FAILURE("201302","申请复议失败"),


    /* 成功 */
    SUCCESS("200", "成功"),

    /* 登出成功 */
    LOGOUT("201", "登出成功"),
    /* 默认失败 */
    COMMON_FAIL("999", "失败"),

    /* 参数错误：1000～1999 */
    PARAM_NOT_VALID("1001", "参数无效"),
    PARAM_IS_BLANK("1002", "参数为空"),
    PARAM_TYPE_ERROR("1003", "参数类型错误"),
    PARAM_NOT_COMPLETE("1004", "参数缺失"),

    /* 用户错误 */
    USER_NOT_LOGIN("2001", "用户未登录"),
    USER_ACCOUNT_EXPIRED("2002", "账号已过期"),
    USER_CREDENTIALS_ERROR("2003", "密码错误"),
    USER_CREDENTIALS_EXPIRED("2004", "密码过期"),
    USER_ACCOUNT_DISABLE("2005", "账号不可用"),
    USER_ACCOUNT_LOCKED("2006", "账号被锁定"),
    USER_ACCOUNT_NOT_EXIST("2007", "账号不存在"),
    USER_ACCOUNT_ALREADY_EXIST("2008", "账号已存在"),
    USER_ACCOUNT_USE_BY_OTHERS("2009", "您的账号在别处登录了，你被迫下线"),

    /* 业务错误 */
    NO_PERMISSION("3001", "没有权限"),

    /* 异常处理 */
    EXCEPTION_NULLPOINT("4001","空指针异常"),
    EXCEPTION_ARITHMETIC("4002","数学异常"),
    EXCEPTION_BUSINESS("4003","业务异常");



    private final String resCode;
    /** 每次返回后得到的信息是什么 */
    private  final String resMsg;

    public String getResCode() {
        return resCode;
    }
    ResultEnum( String resCode,String resMsg){
            this.resCode = resCode;
            this.resMsg =resMsg;
    }

    public String getResMsg() {
        return resMsg;
    }

}
